<?php
/**
 * DotHerbert TestSuite
 *
 * @package    CodeSniffer
 * @subpackage Standards
 * @copyright  2009 extreme-programmers
 * @license    http://dotherbert.extreme-programmers.com/license   BSD License
 * @version    $Id: AllTests.php 102 2009-05-13 17:19:29Z johannes.trink@extreme-programmers.com $
 */

require_once substr(__FILE__, 0, strrpos(__FILE__, DIRECTORY_SEPARATOR . 'tests') + 7) . 'TestHelper.php';

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', DotHerbert_UnitTest_TestSuiteLoader::getUnitTestMainMethod(__FILE__));
}

/**
 * @package    CodeSniffer
 * @subpackage Standards
 * @author     Johannes Trink <johannes.trink@extreme-programmers.com>
 */
class PHP_CodeSniffer_Standards_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite()
    {
        return DotHerbert_UnitTest_TestSuiteLoader::getSuite(__FILE__);
    }
}

if (PHPUnit_MAIN_METHOD == DotHerbert_UnitTest_TestSuiteLoader::getUnitTestMainMethod(__FILE__)) {
    DotHerbert_UnitTest_TestSuiteLoader::runUnitTestMainMethod(PHPUnit_MAIN_METHOD);
}